package ru.michaeltyan.familyconnector.businessobjects.impl;

import ru.michaeltyan.familyconnector.beans.User;
import ru.michaeltyan.familyconnector.businessobjects.UserBusinessObject;
import ru.michaeltyan.familyconnector.dao.UserDao;

public class UserBusinessObjectImpl implements UserBusinessObject {
	private UserDao userDao;

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void save(User user) {
		userDao.save(user);
	}

	public void update(User user) {
		userDao.update(user);
	}

	public void delete(User user) {
		userDao.delete(user);
	}

	public User findByLogin(String login) {
		return userDao.findByLogin(login);
	}

}
